<!DOCTYPE html>
<html>
<head>
    <meta name="robots" content="noindex, nofollow"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <title>{$Think.config.APP_NAME}-导入</title>
    <!-- 引入bootstrap样式 -->
    <link href="__PUBLIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <link href="__PUBLIC__/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" media="screen">
    <!--[if lte IE 7]>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/bootstrap/css/ie.css">
    <![endif]-->
    <!-- 引入EasyUI样式 -->
    <link id="easyuiTheme" rel="stylesheet" href="__PUBLIC__/easyui/themes/default/easyui.css" type="text/css">

    <!-- 引入jQuery -->
    <script src="__PUBLIC__/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <!-- 引入EasyUI -->
    <script type="text/javascript" src="__PUBLIC__/easyui/jquery.easyui.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="__PUBLIC__/easyui/locale/easyui-lang-zh_CN.js" charset="utf-8"></script>

</head>
<body>
<div class="easyui-layout" data-options="fit : true,border : false">
    <div data-options="region:'center',border:false">
        <div class="container">
            <div class="row">
                <div class="span12">
                    <form method="post" id="pageForm" class="form-horizontal easyui-form" action="Sys/User/import">
                        <input name="id" value="{$vo.id}" type="hidden">
                        <table class="table table-bordered table-striped">
                            <tbody>
                            <tr>
                                <th colspan="2">基本信息</th>
                            </tr>
                            <tr>
                                <td class="revise-left" width="15%">模板文件:</td>
                                <td><a href="/data/static/xlsx/{$tmplFile}" target="_blank">点击下载</a>
                                </td>
                            </tr>
                            <tr>
                                <td class="revise-left" width="15%"><span class="text-error">*</span>数据文件:</td>
                                <td width="35%"><input type="hidden" name="xls_file" id="xls_file" value=""/>
                                    <input type="text" name="xls_text" id="xls_text" file_btn="xls_btn" readonly><a id="xls_btn" class="btn">浏览</a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
<script src="__PUBLIC__/js/app.js" type="text/javascript" charset="utf-8"></script>
<script src="__PUBLIC__/js/common.js" type="text/javascript" charset="utf-8"></script>

<script type="text/javascript" src="__PUBLIC__/plupload/plupload.full.min.js"></script>
<script type="text/javascript">
    window.layout = top.layout;
    $(function(){
        $('input[file_btn]').each(function(){
            app.upload({browse_button:$(this).attr('file_btn'),nameField:'#xls_text',idField:'#xls_file',exts:'xls,xlsx'})
        });
    })
</script>